package com.easy.dao;

import com.easy.bean.Administrator;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdministratorDao {
    Administrator getAdministratorByAdministratorname(@Param("administratorname") String administratorname);

    int addAdministrator(@Param("administrator") Administrator administrator);
    int editAdministrator(@Param("administrator") Administrator administrator);
    int deleteAdministrator(@Param("id") int id);
    List<Administrator> selectAdministrator(@Param("page") Page page, @Param("text") String text);
    Administrator getAdministratorByAccount(@Param("account")String account);
    int AdministratorCount(@Param("text") String text);
}
